package factory_method_pattern.sample;

/**
 * 大学生类
 * @author ricejson
 */
public class Undergraduate extends LeiFeng {

    public Undergraduate(String name) {
        super(name);
    }

    @Override
    public void sweep() {
        System.out.println(this.name + "扫地");
    }

    @Override
    public void wash() {
        System.out.println(this.name + "洗衣");
    }

    @Override
    public void buyRice() {
        System.out.println(this.name + "买米");
    }
}
